package org.jeecg.modules.simulator.model;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.jeecg.modules.simulator.jsonot.ODProbabilityApiInfo;

import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.Map;

/**
 * @program: simulator-b20240918
 * @description:
 * @author: renzhg
 * @create: 2024-10-09 16:23
 **/

public class SceneParam {

@Getter
    //场景开始时间
    LocalTime startTime;

    public void setStartTime(String time) {
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:mm:ss");
        this.startTime = LocalTime.parse(time,formatter);
    }

    public String getStartTimeStr() {
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:mm:ss");
        return startTime.format(formatter);
    }

    public String getEndTimeStr() {
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:mm:ss");
        return endTime.format(formatter);
    }

    public void setEndTime(String time) {
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:mm:ss");
        this.endTime = LocalTime.parse(time,formatter);
    }
    //场景结束时间
@Getter
    LocalTime endTime;
    @Getter
    @Setter
    SceneDataType SceneType;
    @Getter
    @Setter
    String sceneDate;
    @Getter
    @Setter
    SceneTimePeriodParam sceneTimePeriodParam;
//    String historyType;


}
